<template>
  <el-form ref="searchForm" :model="searchForm" label-width="120px" >
    <el-row  :gutter="10">
      <el-col :lg="6" :sm="8">
        <el-form-item label="接口描述">
          <el-input v-model="searchForm.descr" ></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-form-item label="接口路径">
          <el-input v-model="searchForm.interPath" ></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-form-item label="备注">
          <el-input v-model="searchForm.remark" ></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-button id="seaBtn" shape="circle" icon="md-search" @click="onSearch" type="primary">查询</el-button>
        <el-button id="resBtn" class="mainBtn" shape="circle" icon="md-sync" @click="onReset">重置</el-button>
      </el-col>
    </el-row>

  </el-form>
</template>
<script>
  export default {
    data () {
      return {
        searchForm: {
          descr: '',
          interPath: '',
          remark: '',
        },
      }
    },
    methods: {
      onSearch () {
        this.$emit('on-search', this.searchForm)
      },
      onReset () {
        this.searchForm.descr=''
        this.searchForm.interPath=''
        this.searchForm.remark=''
      },

    },
    mounted () {

    }
  }
</script>

<style scoped>
</style>
